package micro.service.a.controller;

import micro.service.a.service.IMicroServiceStoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import support.service.a.dto.ListAccountResponse;

@RestController
@RequestMapping("/micro/a/story")
public class MicroServiceStoryController {

  @Autowired
  private IMicroServiceStoryService microServiceStoryService;

  @GetMapping("list")
  public ListAccountResponse doSomethingUseAccount() {
    //你可以在这里基于拿到的Story做业务。该接口为演示接口，直接返回。
    return microServiceStoryService.listAccounts();
  }

}
